package jeye;

import javax.swing.JFrame;

import jeye.gui.frame.CameraPreviewFrame;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;



public class Main {
	
	public static void main(String[] args) throws Exception {
		ApplicationContext context = new ClassPathXmlApplicationContext("app-context.xml");
		JFrame frame = (CameraPreviewFrame)context.getBean("cameraPreviewFrame");
		
		frame.setSize(640, 480);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}

}
